package com.vx.cloud.dataCloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * Created by aofavx on 2017-8-8.
 */
@SpringBootApplication
//启用eureka客户端功能，注册到eureka服务
@EnableDiscoveryClient
//启用Feign服务调用的注解
@EnableFeignClients

@EnableCircuitBreaker
public class EureKaClientFeign {
    public static void main(String[] args) {
        new SpringApplicationBuilder(EureKaClientFeign.class).web(true).run(args);
    }
}
